package code.rocky.chapter05;

import java.util.Arrays;
import java.util.List;

public class Suggest66 {
    public static void main(String[] args) {
        Week[] workDays = {Week.Mon, Week.Tue, Week.Wed, Week.Thu, Week.Fri};
        List<Week> list = Arrays.asList(workDays);
        list.add(Week.Sat);
        // Exception in thread "main" java.lang.UnsupportedOperationException
    }
}
enum Week {
    SuN, Mon, Tue, Wed, Thu, Fri, Sat
}
